<%@page import="com.entity.Order_goods"%>
<%@page import="java.util.List"%>
<%@page import="com.dao.OgDao"%>
<%@page import="com.service.impl.GoodsServiceImpl"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 引入 jquery -->
<script src="https://code.jquery.com/jquery.js"></script><!-- 导入JQuery方便使用ajax插件 -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"><!-- 导入bootstrap -->

<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script><!-- 导入bootstrap核心js文件 -->
<!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -->
<title>Insert title here</title>
</head>
<body>
<h1 style="margin-left: 50px;">订单详情</h1>

<div class="container mt-3">        
  <table class="table table-striped table-hover table-responsive-sm" style="width: 1000px;">
    <thead class="table-success">
      <tr>
        <th>订单编号</th>
        <th>订单-商品编号</th>
        <th>商品编号</th>
        <th>商品图片</th>
        <th>商品名称</th>
        <th>商品数量</th>
        <th>商品价格</th>
        <th>售后服务</th>
      </tr>
    </thead>
    <tbody>
    <c:forEach var="og" items="${oglist}">
      <tr>
        <td>${og.order_id}</td>
        <td>${og.og_id}</td>
        <td>${og.good_id}</td>
        <td><img src="${og.g_image}" class="img-thumbnail" width="50px" alt="Cinque Terre"></td>
        <td>${og.good_name}</td>
        <td>${og.goodsNum}</td>
        <td>${og.goodsPrice}</td>
        <td><button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">申请售后</button></td>
      </tr>
      </c:forEach>
    </tbody>
  </table>
</div>


</body>
</html>